

let cfg = require('../utils/cfg');

class SpriteFrame{
    constructor(name,tex2d,x,y,w,h) {
        this._id = cfg.genId();

        this._name = name;
        this._texture2d = tex2d;
        this._x = x || 0;
        this._y = y || 0;
        this._w = w || tex2d.width;
        this._h = h || tex2d.height;

        // uvs
    }

    get id(){
        return this._id;
    }
}

module.exports = SpriteFrame;